# def celsius_to_fahrenheit(c):
#     F=c*9/5+32
#     return  F
# print(celsius_to_fahrenheit(39))

# def calculate_discount(a,b):
#     if b<0 or b>1:
#         return 'Invalid discount rate'
#     else:
#         c=a-a*b
#         return c
# print(calculate_discount(100,1.2))

# def is_leap_year(y):
#     if y%4==0 and y%100!=0 or y%400 ==0:
#         return '这一年是闰年'
#     else:
#         return '这一年不是闰年'
# print(is_leap_year(2024))

# def calculate_grade():
#     while True:
#         g=float(input('输入分数：'))
#         if g<0:
#             g=-g
#         if g > 100:
#             print('游戏结束')
#             break
#         if g*10%10!=0:
#             print(g)
#             g=int(g)
#         if g>=90:
#             print('评分为A')
#         elif g>=80:
#             print('评分为B')
#         elif g>=70:
#             print('评分为C')
#         elif g>=60:
#             print('评分为D')
#         else:
#             print('评分为E')

# def hsyx():
#     import random
#     x = random.randint(0, 100)
#     for i in range(7):
#         a=int(input('输入数字：'))
#         if a>x:
#             print('猜大了')
#         elif a<x:
#             print('猜小了')
#         else:
#             print(f'正确，您猜了{i+1}次')
#             break
#         if i == 6:
#             print(f'答案是：{x},您猜了7次')

def chicken_duck_goose():
    for c in range(100):
        for b in range(100):
            for a in range(100):
                if a + b + c == a*0.5+b*3+c*5==100:
                    print(f'买{a}只鸡，{b}只鸭，{c}只鹅刚好花100元')
chicken_duck_goose()


